﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace Iacym.Entities
{
    public class PROCEDENCIA : BaseEntity
    {
        public int Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }
        public virtual ICollection<IGLESIA> IGLESIAs { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}
